package io.renren.service.impl;

import io.renren.dao.SysTreeTestDao;
import io.renren.entity.SysTreeTestEntity;
import io.renren.service.SysTreeTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("sysTreeTestService")
public class SysTreeTestServiceImpl implements SysTreeTestService {
	@Autowired
	private SysTreeTestDao sysTreeTestDao;
	
	@Override
	public SysTreeTestEntity queryObject(String id){
		return sysTreeTestDao.queryObject(id);
	}
	
	@Override
	public List<SysTreeTestEntity> queryList(Map<String, Object> map){
		return sysTreeTestDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysTreeTestDao.queryTotal(map);
	}
	
	@Override
	public void save(SysTreeTestEntity sysTreeTest){
		sysTreeTestDao.save(sysTreeTest);
	}
	
	@Override
	public void update(SysTreeTestEntity sysTreeTest){
		sysTreeTestDao.update(sysTreeTest);
	}
	
	@Override
	public void delete(String id){
		sysTreeTestDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		sysTreeTestDao.deleteBatch(ids);
	}

    @Override
    public List<SysTreeTestEntity> queryListAll() {
       return   sysTreeTestDao.queryListAll();
    }

    @Override
    public int findSubmenuCountByPid(String id) {
        return  sysTreeTestDao.findSubmenuCountByPid(id);
    }

}
